<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MuPDFCore: MuPDFCore.RoundedRectangle Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">MuPDFCore<span id="projectnumber">&#160;1.8.0</span>
   </div>
   <div id="projectbrief">Multiplatform .NET bindings for MuPDF</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('struct_mu_p_d_f_core_1_1_rounded_rectangle.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="struct_mu_p_d_f_core_1_1_rounded_rectangle-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">MuPDFCore.RoundedRectangle Struct Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Represents a rectangle using only integer numbers.   
 <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5875de06b1b4fd5a04918c1d3c02b773"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a5875de06b1b4fd5a04918c1d3c02b773">RoundedRectangle</a> (int x0, int y0, int x1, int y1)</td></tr>
<tr class="memdesc:a5875de06b1b4fd5a04918c1d3c02b773"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a> from the specified coordinates.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a5875de06b1b4fd5a04918c1d3c02b773">More...</a><br /></td></tr>
<tr class="separator:a5875de06b1b4fd5a04918c1d3c02b773"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9eeb953d6f0b2d66cd5920211e10a5c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a>[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#aa9eeb953d6f0b2d66cd5920211e10a5c">Split</a> (int divisions)</td></tr>
<tr class="memdesc:aa9eeb953d6f0b2d66cd5920211e10a5c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Split the rectangle into the specified number of <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a>s.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#aa9eeb953d6f0b2d66cd5920211e10a5c">More...</a><br /></td></tr>
<tr class="separator:aa9eeb953d6f0b2d66cd5920211e10a5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:afdc6e63ec2785581fce806d24d73b63e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#afdc6e63ec2785581fce806d24d73b63e">X0</a></td></tr>
<tr class="memdesc:afdc6e63ec2785581fce806d24d73b63e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The left coordinate of the rectangle.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#afdc6e63ec2785581fce806d24d73b63e">More...</a><br /></td></tr>
<tr class="separator:afdc6e63ec2785581fce806d24d73b63e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2a366728b46c908496c2cccac6788a4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#af2a366728b46c908496c2cccac6788a4">Y0</a></td></tr>
<tr class="memdesc:af2a366728b46c908496c2cccac6788a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">The top coordinate of the rectangle.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#af2a366728b46c908496c2cccac6788a4">More...</a><br /></td></tr>
<tr class="separator:af2a366728b46c908496c2cccac6788a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5041fe26b99b942d3aaa95d7d207f8f0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a5041fe26b99b942d3aaa95d7d207f8f0">X1</a></td></tr>
<tr class="memdesc:a5041fe26b99b942d3aaa95d7d207f8f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The right coordinate of the rectangle.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a5041fe26b99b942d3aaa95d7d207f8f0">More...</a><br /></td></tr>
<tr class="separator:a5041fe26b99b942d3aaa95d7d207f8f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0028471434c2a335eb07bfa623a603e3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a0028471434c2a335eb07bfa623a603e3">Y1</a></td></tr>
<tr class="memdesc:a0028471434c2a335eb07bfa623a603e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">The bottom coordinate of the rectangle.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a0028471434c2a335eb07bfa623a603e3">More...</a><br /></td></tr>
<tr class="separator:a0028471434c2a335eb07bfa623a603e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a29904ab0820872c48e43631ece9f1fff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a29904ab0820872c48e43631ece9f1fff">Width</a><code> [get]</code></td></tr>
<tr class="memdesc:a29904ab0820872c48e43631ece9f1fff"><td class="mdescLeft">&#160;</td><td class="mdescRight">The width of the rectangle.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a29904ab0820872c48e43631ece9f1fff">More...</a><br /></td></tr>
<tr class="separator:a29904ab0820872c48e43631ece9f1fff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d75f9e5e23910ee0a4078eec4980c9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a73d75f9e5e23910ee0a4078eec4980c9">Height</a><code> [get]</code></td></tr>
<tr class="memdesc:a73d75f9e5e23910ee0a4078eec4980c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The height of the rectangle.   <a href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html#a73d75f9e5e23910ee0a4078eec4980c9">More...</a><br /></td></tr>
<tr class="separator:a73d75f9e5e23910ee0a4078eec4980c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Represents a rectangle using only integer numbers.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00494">494</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5875de06b1b4fd5a04918c1d3c02b773" name="a5875de06b1b4fd5a04918c1d3c02b773"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5875de06b1b4fd5a04918c1d3c02b773">&#9670;&#160;</a></span>RoundedRectangle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MuPDFCore.RoundedRectangle.RoundedRectangle </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a> from the specified coordinates.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x0</td><td>The left coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">y0</td><td>The top coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">x1</td><td>The right coordinate of the rectangle.</td></tr>
    <tr><td class="paramname">y1</td><td>The bottom coordinate of the rectangle.</td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00533">533</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa9eeb953d6f0b2d66cd5920211e10a5c" name="aa9eeb953d6f0b2d66cd5920211e10a5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9eeb953d6f0b2d66cd5920211e10a5c">&#9670;&#160;</a></span>Split()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a>[] MuPDFCore.RoundedRectangle.Split </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>divisions</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Split the rectangle into the specified number of <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a>s.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">divisions</td><td>The number of rectangles in which the rectangle should be split. This must be factorisable using only powers of 2, 3, 5 or 7. Otherwise, the biggest number smaller than <em>divisions</em>  that satisfies this condition is used.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>An array of <a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html" title="Represents a rectangle using only integer numbers.">RoundedRectangle</a>s that when positioned properly cover the same area as this object.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00546">546</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="afdc6e63ec2785581fce806d24d73b63e" name="afdc6e63ec2785581fce806d24d73b63e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afdc6e63ec2785581fce806d24d73b63e">&#9670;&#160;</a></span>X0</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.RoundedRectangle.X0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The left coordinate of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00499">499</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a5041fe26b99b942d3aaa95d7d207f8f0" name="a5041fe26b99b942d3aaa95d7d207f8f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5041fe26b99b942d3aaa95d7d207f8f0">&#9670;&#160;</a></span>X1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.RoundedRectangle.X1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The right coordinate of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00509">509</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="af2a366728b46c908496c2cccac6788a4" name="af2a366728b46c908496c2cccac6788a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2a366728b46c908496c2cccac6788a4">&#9670;&#160;</a></span>Y0</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.RoundedRectangle.Y0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The top coordinate of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00504">504</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a0028471434c2a335eb07bfa623a603e3" name="a0028471434c2a335eb07bfa623a603e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0028471434c2a335eb07bfa623a603e3">&#9670;&#160;</a></span>Y1</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.RoundedRectangle.Y1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The bottom coordinate of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00514">514</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a id="a73d75f9e5e23910ee0a4078eec4980c9" name="a73d75f9e5e23910ee0a4078eec4980c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73d75f9e5e23910ee0a4078eec4980c9">&#9670;&#160;</a></span>Height</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.RoundedRectangle.Height</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The height of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00524">524</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<a id="a29904ab0820872c48e43631ece9f1fff" name="a29904ab0820872c48e43631ece9f1fff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29904ab0820872c48e43631ece9f1fff">&#9670;&#160;</a></span>Width</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int MuPDFCore.RoundedRectangle.Width</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The width of the rectangle.  </p>

<p class="definition">Definition at line <a class="el" href="_rectangles_8cs_source.html#l00519">519</a> of file <a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>MuPDFCore/<a class="el" href="_rectangles_8cs_source.html">Rectangles.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_mu_p_d_f_core.html">MuPDFCore</a></li><li class="navelem"><a class="el" href="struct_mu_p_d_f_core_1_1_rounded_rectangle.html">RoundedRectangle</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
